package com.lz.controller;

import com.lz.domain.Task;
import com.lz.service.DockerService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <pre>
 * @描述：
 * @作者：lizhao
 * @创建时间： 2024/12/18 上午9:11
 * </pre>
 **/
@RestController
@RequestMapping("/docker")
public class DockerController {
    @PostMapping("/testWork")
    public String testWork(@RequestBody Task task) {
        return new DockerService().test(task);
    }

    @PostMapping("/buildImage")
    public String buildImage() {
        return "new DockerService().buildImage(task)";
    }
}
